package com.lxlx.weixinlx.service;

import com.lxlx.weixinlx.domain.Token;
import com.lxlx.weixinlx.domain.User;
import org.springframework.stereotype.Service;

/**
 * @author liuhuan
 * @date 2020
 * @描述
 */
public interface WeiXingLoginService {
    /**
     * 获取二维码
     * @return
     */
    public String getLogin();

    /**
     * 获取唯一标识
     * @param code
     * @return
     */
    public Token getToken(String code);

    /**
     * 获取用户信息
     * @param access_token
     * @param openid
     * @return
     */
    public User getUser(String access_token, String openid);

}
